package com.clickpaas.workinghours.service;

import com.clickpaas.workinghours.common.Response.ResponseResult;
import com.clickpaas.workinghours.entity.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ControllerService {

    /**
     * 查询TimeCard数据
     * @return
     */
    public ResponseResult getTimeCardInfo(TimeCardEntity entity);

    /**
     * 插入TimeCard数据
     * @return
     */
    public ResponseResult insertTimeCardInfo(TimeCardEntity entity);

    /**
     * 插入TimeCard数据
     * @return
     */
    public ResponseResult insertBatchTimeCardInfo(List<TimeCardEntity> timeCardEntity);

    /**
     * 更新TimeCard数据
     * @return
     */
    public ResponseResult updateTimeCardInfo(TimeCardEntity entity);

    /**
     * 批量更新TimeCard数据
     * @return
     */
    public ResponseResult updateBatchTimeCardInfo(List<TimeCardEntity> timeCardEntity);

    /**
     * 删除TimeCard数据
     * @return
     */
    public ResponseResult deleteTimeCardInfo(TimeCardEntity entity);

    /**
     * 查询项目数据
     * @return
     */
    public ResponseResult getProjectInfo(ProjectEntity entity);

    /**
     * 查询商机数据
     * @return
     */
    public ResponseResult getOpportunityInfo(OpportunityEntity entity);

    /**
     * 查询市场活动数据
     * @return
     */
    public ResponseResult getCampaignInfo(CampaignEntity entity);

    /**
     * 查询WBS数据
     * @return
     */
    public ResponseResult getWbsInfo(ProjectEntity projectEntity);

    /**
     * 查询用户名称
     * @return
     */
    public ResponseResult getUserInfo(HttpServletRequest httpServletRequest);

    /**
     * 查询工时填报主数据
     * @return
     */
    public ResponseResult getMainData(HttpServletRequest httpServletRequest);

    /**
     * 查询工时填报主数据
     * @return
     */
    public ResponseResult getWeekend(WeekEntity weekEntity);

    /**
     * 更新Lead线索数据
     * @return
     */
    public ResponseResult updateLeadInfo(LeadEntity leadEntity);


}
